const http=require("http")
const fs=require("fs");
http.createServer((req,res)=>{
    res.end("test");
}).listen(3000);

fs.readFile("./demo1.html",(err,data)=>{
    console.log(data.toString());
})
console.log("server is listening")